/*Using LVGL with Arduino requires some extra steps:
 *Be sure to read the docs here: https://docs.lvgl.io/master/get-started/platforms/arduino.html  */

#include <lvgl.h>
#include <Arduino.h>
#include "./dev/screen.h"
#include "./dev/touch.h"
#include "serial_cli.h"
#include <demos/lv_demos.h>


 void setup()
 {
    screen_setup();
    touch_init();
    screen_setBrightness(255);
    xtouch_touch_cal_setup();
    lv_demo_widgets();
    delay(100);
 }
 
 void loop()
 {
  lv_timer_handler(); /* let the GUI do its work */
  serial_cli_loop();
  delay( 5 );
 }
 